package com.jrx.anytxn.customer.dto.creditinfo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户页面额度记录res
 *
 * @author yf
 * date 2020/4/10 0010
 * @version V1.0
 **/
public class AdjustLimitRecordRes implements Serializable {

    /**
     *调整时间
     */
    private Date dateTime;

    /**
     *调整后额度
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal limitPermAfter;

    /**
     *额度描述
     */
    private String limitDesc;

    /**
     *额度类型
     */
    private String limitType;

    /**
     *额度属性
     */
    private String useMode;

    /**
     *检核标识
     */
    private String authCheck;

    /**
     *额度生效日期
     */
    @JsonFormat( pattern="yyyy-MM-dd")
    private Date limitTempStartDateAfter;

    /**
     *额度失效日期
     */
    @JsonFormat( pattern="yyyy-MM-dd")
    private Date limitTempEndDateAfter;

    /**
     * 最后更新操作员
     * 表字段:update_by
     */
    private String updateBy;

    /**
     * 调整类型
     * 表字段:adjust_type(0调额 1冻结 2解冻)
     */
    private String adjustType;

    /**
     * 调整原因
     * 表字段:adjust_reason
     */
    private String adjustReason;

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public BigDecimal getLimitPermAfter() {
        return limitPermAfter;
    }

    public void setLimitPermAfter(BigDecimal limitPermAfter) {
        this.limitPermAfter = limitPermAfter;
    }

    public String getLimitDesc() {
        return limitDesc;
    }

    public void setLimitDesc(String limitDesc) {
        this.limitDesc = limitDesc;
    }

    public String getLimitType() {
        return limitType;
    }

    public void setLimitType(String limitType) {
        this.limitType = limitType;
    }

    public String getUseMode() {
        return useMode;
    }

    public void setUseMode(String useMode) {
        this.useMode = useMode;
    }

    public String getAuthCheck() {
        return authCheck;
    }

    public void setAuthCheck(String authCheck) {
        this.authCheck = authCheck;
    }

    public Date getLimitTempStartDateAfter() {
        return limitTempStartDateAfter;
    }

    public void setLimitTempStartDateAfter(Date limitTempStartDateAfter) {
        this.limitTempStartDateAfter = limitTempStartDateAfter;
    }

    public Date getLimitTempEndDateAfter() {
        return limitTempEndDateAfter;
    }

    public void setLimitTempEndDateAfter(Date limitTempEndDateAfter) {
        this.limitTempEndDateAfter = limitTempEndDateAfter;
    }

    public String getAdjustType() {
        return adjustType;
    }

    public void setAdjustType(String adjustType) {
        this.adjustType = adjustType;
    }

    public String getAdjustReason() {
        return adjustReason;
    }

    public void setAdjustReason(String adjustReason) {
        this.adjustReason = adjustReason;
    }

    @Override
    public String toString() {
        return "AdjustLimitRecordRes{" +
                "dateTime=" + dateTime +
                ", limitPermAfter=" + limitPermAfter +
                ", limitDesc='" + limitDesc + '\'' +
                ", limitType='" + limitType + '\'' +
                ", useMode='" + useMode + '\'' +
                ", authCheck='" + authCheck + '\'' +
                ", limitTempStartDateAfter=" + limitTempStartDateAfter +
                ", limitTempEndDateAfter=" + limitTempEndDateAfter +
                ", updateBy='" + updateBy + '\'' +
                ", adjustType='" + adjustType + '\'' +
                ", adjustReason='" + adjustReason + '\'' +
                '}';
    }
}
